const {queryVectorKbDataList} = require("./utlis/API/index_fetch.js");
const {deleteVectorKbData} = require("./utlis/API/index_axios.js");


const params = {
    groupId:473,
    page:1,
    pageSize:200
}
let data = []

const getDataList = async (params) =>{
    try {
        const res = await queryVectorKbDataList("/qiwei/kb/queryVectorKbDataList",params)
        data = res.d.list
        console.log(res);
    } catch (error) {
        console.log(error.cause);
        
    }
 
}

const delDataId = async (params) =>{
    const res = await deleteVectorKbData(params)
    console.log(params.dataId + "删除成功");
}

const run = async () =>{
    await getDataList(params)
    // for(let i = 0; i < data.length; i++){
    //     console.log(data)
    //     // delDataId({dataId:data[i].dataId})
    // }
}
run()


